<?php 
/*
 * Just have to fill in the variables and replace the text by yours
 * 
 * DON'T FORGET --> A DOCUMENTATION IS HERE TO HELP YOU ;-)
 */

$pageName = "Inicio"; // Put here the page name

/*
 * For the SEO
 */
$pageDescription = ""; //Decription of the page
$pageKeywords = ""; //Keywords should all be in lowercase and separated by commas.
$autor = "Marlon Zayro Arias Vargas"; 


/*
 * *****************************************************************************
 * HEADER
 * *****************************************************************************
 */
 $titulo_pagina = 'Maestro Factura';
 $titulo_archivo = "Reportes"; 
 
 
$elegir1 = "";
$elegir2 = "";
$elegir3= "";
$elegir4 = "";
$elegir5 = "";
$elegir6 = "";
$elegir7 = "";
$elegir8 = 'class="current"';
$estilo =  "";


 $usuario = "Administrador";
 $nombre_usuario = "Marlon Zayro<b> Arias Vargas" ;
 
 include('encabezado.php'); ?>

<!-- Frame maestro factura -->

<style type="text/css">
ol  {

    padding: 0px 0px 0px 10%;
}


@media print 
{
	.boton_imprimir{
	visibility:hidden;
	}

#main-title{
	visibility:hidden;
		display:none;
	}
	
.thin{
	visibility:hidden;
		display:none;	}	

hgroup{	
	visibility:hidden;
	display:none;
	}
	
header{
	visibility:hidden;
	display:none;
	}
	



}


</style>
           


<div id="reportes_facturas" >
  <ol>
    <?php


$directorio = 'componentes/impresiones/'; 
function ordenar($a,$b){ 
 global $directorio; 
 
 $a = filemtime($directorio.$a); 
 $b = filemtime($directorio.$b); 
 if ($a == $b) { 
 return 0; 
 } 
 return ($a > $b) ? -1 : 1; 
} 

$dir=opendir($directorio); 
//echo "<b>Directorio actual:</b><br> $directorio<br>"; 
//echo "<b>Archivos:</b><br>"; 

while($arch=readdir($dir))$ars[]=$arch; 
closedir($dir); 
usort($ars, "ordenar");
 
//echo "$ar<br>"; 

foreach($ars as $ar)
{
	
if (($ar == '.')||($ar == '..'))
{
}
elseif (is_dir($directorio.'/'.$ar))
{
   

}
else
{

 $registros = substr($ar, 0, -4);
?>
<!---    <li> <a href='javascript:void(0);'  onClick='traer_reportes("siver", "<?php //echo $ar; ?>"); return false; '><?php //echo $registros; ?></a> </li> --->
     <li> <a href='#'  onClick="abrir_ventana('componentes/impresiones/<?php echo $ar; ?>', 'ventana',  'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=800,height=500,top=85,left=140');"><?php echo $registros; ?></a> </li>
    
    <?php 
}
}

?>
  </ol>
  
  
</div>


</section>





<!-- End main content --> 

<!-- Side tabs shortcuts -->
<?php 




require('sidebar_izq.php');  

// <!-- Sidebar/drop-down menu -->

 require('sidebar_der.php');     

// <!-- End sidebar/drop-down menu --> 

 require('cargar_js.php'); ?>



<script>
$(document).ready(function() {
	var altura = $(document).height();
	 $('#frames').attr('height', ''+altura+' px');
$(window).resize(function() { 

 $('#frames').attr('height', ''+altura+' px');
//alert(altura);
});
});

function dimensionCapa(capa){
capa = $(capa);
var dimensiones = "";
dimensiones += "Dimensiones internas: " + capa.innerWidth() + "x" + capa.innerHeight();
dimensiones += "\nDimensiones externas: " + capa.outerWidth() + "x" + capa.outerHeight();
alert(dimensiones);
}
</script>
</body>
</html>